from django.conf.urls import defaults
from django.contrib import admin
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = defaults.patterns('',
    (r'^', defaults.include('public.urls')),
    (r'^projects/', defaults.include('projects.urls')),
    (r'^sprint/', defaults.include('sprint.urls')),

    (r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'landpage.html'}, 'logout'),

    #Django Admin URLs
    (r'^admin/doc/', defaults.include('django.contrib.admindocs.urls')),
    (r'^admin/', defaults.include(admin.site.urls)),
    
    #django social auth
    (r'', defaults.include('social_auth.urls')),
)

urlpatterns += defaults.patterns('',
        (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )